#执行输入操作
#对象库层
from selenium.webdriver.common.by import By

from APP.base.base_c import Bas1,Bas2
class DO1(Bas1):
    def __init__(self):
        self.username =By.XPATH,"//*[@TEXT='用户']"
        self.password =By.XPATH,"//*[@text='密码']"
        self.denglu =By.XPATH,"//*[@text='密码']"
        super().__init__()

    def Find_username(self):

        return self.Get_element(self.username)

    def Find_password(self):
        return self.Get_element(self.password)

    def Find_denglu1(self):
        return self.Get_element(self.denglu)

#操作层
class DO2(Bas2):
    def __init__(self):
        super().__init__()
    def Input_username(self):
        self.ccc=DO1()
        return self.clear_and_sends_text(self.ccc.Find_username(),"11223334")
    def Input_password(self):
        self.ccc1=DO1()
        return self.clear_and_sends_text(self.ccc1.Find_password(),"11224")
    def denglu1(self):
        self.ccc3=DO1()
        self.ccc3.Find_denglu1().clcik()
#业务层#执行类
class DO3:
    def __init__(self):
        self.a=DO2()
    def do1(self,username,password):
        self.a.Input_username()
        self.a.Input_password()
        self.a.denglu1()
